package com.chinasofti.objectDemo2;

public class Test01 {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.setName("韩梅梅");
        s1.setAge(18);

        Student s2 = new Student();
        s2.setName("韩梅梅");
        s2.setAge(18);
        //需求、比较两个对象内容是否一致
        System.out.println(s1.equals(s2));

    }
}
